package com.yjt.javatest.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yjt.javatest.entity.Question;
import com.yjt.javatest.utils.APIResponse;


/**
 * @author fengye
 * @Date: 2022-07-17-14:04
 * @Description:
 */
public interface QuestionService extends IService<Question> {
     APIResponse deleteQuestion(Integer questionId);


     APIResponse getQuestionsByUserId();

     APIResponse getQuestionsByCategoryId(Integer categoryId);

     APIResponse updateCategoryOfQuestion(Integer questionId, Integer newCategoryId);

     APIResponse updateQuestion(Integer id, JSONObject content);

    APIResponse getQuestionsByTestId(Long id);

     APIResponse createQuestion(Integer type, Integer score, Integer categoryId, JSONObject content);

    APIResponse updateQuestion(Question question);
}
